<template>
	<view class="functionCard">
		<uni-card>
			<view class="functionListBox">
				<view class="functionList"  v-for="(item, index) in functionCardimag" :key="index" @click="goto(index)">
					<view>
						<image :src='item' mode="widthFix"></image>
					</view>
					<view>
						<text>最近播放</text>
					</view>
				</view>
			</view>
			
		</uni-card>
	</view>
</template>

<script>
	export default {
		props:{
			functionCardimag:Array
		},
		data() {
			return {
				
			}
		},
		methods: {
			goto(id){
				switch (id){
					case 0:{
						uni.navigateTo({
							url:"/pages/home/pages/lately",
						})
					}
				}
				
			}
		}
	}
</script>

<style scoped>
.functionList{
	text-align: center;
	flex: 1;
	min-width: 25%;
	max-width: 25%;
	width: 25%;
}
	.functionList image{
		width: 100upx;
		height: 100upx;
	}
	.functionListBox{
		font-size: 20upx;
		display: flex;
		flex-wrap: wrap;
	}
	
	.follow_fans_Lv text {
		margin: 10upx;
	}

	
</style>
